package es.unavarra.mti.iws;

import com.hp.hpl.jena.rdf.model.Model;
import java.util.List;

public interface EngineInterface {
	public static final int RULE_FIRE = 1;
	public static final int RULE_RAIN = 2;
	public static final int RULE_QUAKE = 3;
	
	public void addNode(String id,String type);
	public void delNode(String id);
	public void addLink(String id1,String id2);
	public void delLink(String id,String id2);
	public void setTemp(String id,float temp);
	public void setRain(String id,float rain);
	public void setTilt(String id,float tilt);
	public void init();

	public List<String> burnedNodes();
        public List<String> wetNodes();
        public List<String> fallenNodes();

        public boolean isAnyOnFire();
        public boolean isAnyQuake();
        public boolean isAnyWet();
        public List<String> querySPARQL(String query, String param);
        public List<List<String>> querySPARQL(String query, String param1, String param2);
        public String prepareQuery(boolean subjectCheck, boolean objectCheck, String subject, String predicate, String object, String condition, String operator, String value);
        public void saveOntology(String file, String type);
        public Model getModel();
}
